{% extends 'base/base.html' %}

{% block title %}
    用户每日统计
{% endblock %}

{% block head %}

{% endblock %}

{% block page_title %}
    {{ self.title() }}
{% endblock %}

{% block main_content %}

    <form action="" method="get">
            <div class="form-group">
                <div class="row">
                  <div class="col-lg-4">
                    <div class="input-group">
                      <input type="text" class="form-control" name="user_id" placeholder="请输入用户手机号">
                       <span class="input-group-btn">
                           <input type="submit" value="手机号搜索" class="btn btn-primary">
                        </span>
                    </div><!-- /input-group -->
                  </div><!-- /.col-lg-6 -->

                  <div class="col-lg-4">
                    <div class="input-group">
                      <input type="text" class="form-control" name="today" placeholder="2020-06-01">
                       <span class="input-group-btn">
                           <input type="submit" value="日期搜索" class="btn btn-primary">
                        </span>
                    </div><!-- /input-group -->
                  </div><!-- /.col-lg-6 -->

                </div><!-- /.row -->
            </div>
        </form>


    <table class="table table-bordered" data-toggle="bootstrap-table">
        <thead>
            <tr>
                <th>手机号</th>
                <th>用户名</th>
                <th>团队等级</th>
                <th>每日释放</th>
                <th>日静态收益</th>
                <th>今日购买</th>
                <th>直推购买</th>
                <th>团队购买</th>
                <th>直推奖励</th>
                <th>团队奖励</th>
            </tr>
        </thead>
        <tbody>
            {% for i in user_count %}
                <tr>
                    <td>{{ i[0] }}</td>
                    <td>{{ i[1] }}</td>
                    <td>{{ i[2] }}</td>
                    <td>{{ i[3] }}</td>
                    <td>{{ i[4] }}</td>
                    <td>{{ i[5] }}</td>
                    <td>{{ i[6] }}</td>
                    <td>{{ i[7] }}</td>
                    <td>{{ i[8] }}</td>
                    <td>{{ i[9] }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    {%if pagination%}
        <div class="pagination-link" style="text-align: center">{{ pagination.links }}</div>
    {% endif %}
{% endblock %}